#{extends 'CRUD/layout.html' /}
#{script  src:'/kindeditor.js', charset:'utf-8' /}
#{stylesheet src:'/kindedit/default.css' /}
#{stylesheet src:'/kindedit/editor.css' /}
<script>
KE.show({
	id : 'content2',
	resizeMode : 1,
	width : '70%', 
    height : '200px',
    imageUploadJson:'../../../UploadController/upload',
	pluginsPath:'../../public/plugins/',
	items : [
		'fontname', 'fontsize', '|', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
		'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
		'insertunorderedlist', '|', 'image', 'link']
});
</script>


<div id="crudBlank" class="${type.name}">
	
	<h2 id="crudBlankTitle">&{'crud.blank.title', type.modelName}</h2>
	
	<div class="objectForm">
	#{form action:@create(), enctype:'multipart/form-data'}
		#{crud.form } 
			#{crud.custom 'content'}
				<label for="object_ctime">
					content
				</label>
				<textarea id="content2" name="object.content" style="visibility:hidden;"></textarea>
			#{/crud.custom}
		#{/crud.form }
		<p class="crudButtons">
			<input type="submit" name="_save" value="&{'crud.save', type.modelName}" />
			<input type="submit" name="_saveAndContinue" value="&{'crud.saveAndContinue', type.modelName}" />
			<input type="submit" name="_saveAndAddAnother" value="&{'crud.saveAndAddAnother', type.modelName}" />
		</p>
	#{/form}
	</div>

</div>